On Command Listener
Interface for receiving and processing command events within the RevelDigital player.
Commands provide a structured way to instruct the player or its components to perform specific actions. These commands might originate from various sources, such as remote server instructions, local application logic, inter-process communication, or even from content like RevelDigital Gadgets.
Implementations of this interface are registered with a component responsible for dispatching commands (e.g., using an addOnCommandListener
method on a central command dispatcher or a specific player module). When a recognized command event occurs, the onCommand method of the listener object is invoked with the command's name and its associated argument.
Common use cases include controlling playback (e.g., "nextItem", "setVolume"), navigating the application, triggering data synchronization, or interacting with hardware peripherals.
See also
Potentially a source or handler of commands.